#include "sampleanalysis.h"


SampleAnalysis::SampleAnalysis(QObject *parent) : ISampleAnalysis(parent)
{
    count = new ICount();
    connect(count,SIGNAL(counting()),this,SLOT(onCount()));
    connect(count,SIGNAL(countCompelet()),this,SLOT(onCountCompelet()));
}

SampleAnalysis::~SampleAnalysis(){

}

void SampleAnalysis::doInit()
{

}

void SampleAnalysis::doQuit()
{

}

void SampleAnalysis::enableAnalysis(bool enable){

}

void SampleAnalysis::setMode(const QString &analysisMode, const QString &bloodMode){

}

void SampleAnalysis::setSampleInfo(SampleInfoDao *dao){
    //todo:创建一条记录
    sampleInfoDao = *dao;
}

void SampleAnalysis::setCheck(bool check)
{

}

void SampleAnalysis::setBLView(ISampleAnalysisForm *view)
{
    sampleAnalysisView = view;
}

void SampleAnalysis::onCount()
{
    sampleAnalysisView->onDoAnalysis();
}

void SampleAnalysis::onCountCompelet()
{
    sampleAnalysisView->onCountCompelet();
}


